package test.sup;

/**
 * @name 菠菜
 * @date 2024-09-01 15:45
 */
public class Cat {

    private String name;
    private int age;

    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void setAge(int age){
        this.age = age;
    }

    public int getAge(){
        return age;
    }

    public void sleep(){
        System.out.println("小猫在睡觉");
    }
    public void eat(){
        System.out.println("小猫在吃东西");
    }

}
